package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Employee;
import cn.wolfcode.rbac.query.EmployeeQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);
    int insert(Employee record);
    Employee selectByPrimaryKey(Long id);
    int updateByPrimaryKey(Employee record);
    List<Employee> queryForList(EmployeeQueryObject qo);
    void addrole(@Param("id") Long id, @Param("rid") int rid);
    void deleteRoles(Long id);
    Employee selectByInfo(@Param("username") String username, @Param("password") String password);
    Employee selectByName(String name);
    List<String> selectSnByEmployeeId(Long id);
    List<String> selectExpressionByEmployee(Long id);
    void deleteMany(Long[] ids);
    List<Employee> selectAllForXls();
    List<Employee> selectBySn(String ...sn);
}